package com.huluobo.jetpackkotlindemo2006a.paging

import com.google.gson.annotations.SerializedName

/**
 * Created by lc on 2023/2/22.
 * SerializedName 属性重命名,可以将json中的属性名转换为我们自己定义的属性名
 */
class RepoResponse {
    @SerializedName("items")
    val items: List<Repo> = emptyList()
}

data class Repo(
    @SerializedName("id")
    val id: String,
    @SerializedName("name")
    val name: String,
    @SerializedName("description")
    val description: String,
    @SerializedName("stargazers_count")
    val starCount: String
)